package com.ruoyi.hanyun.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hanyun.mapper.HyTaskAssignmentHistoryMapper;
import com.ruoyi.hanyun.domain.HyTaskAssignmentHistory;
import com.ruoyi.hanyun.service.IHyTaskAssignmentHistoryService;

/**
 * 任务分配历史Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-27
 */
@Service
public class HyTaskAssignmentHistoryServiceImpl implements IHyTaskAssignmentHistoryService 
{
    @Autowired
    private HyTaskAssignmentHistoryMapper hyTaskAssignmentHistoryMapper;

    /**
     * 查询任务分配历史
     * 
     * @param id 任务分配历史主键
     * @return 任务分配历史
     */
    @Override
    public HyTaskAssignmentHistory selectHyTaskAssignmentHistoryById(Long id)
    {
        return hyTaskAssignmentHistoryMapper.selectHyTaskAssignmentHistoryById(id);
    }

    /**
     * 查询任务分配历史列表
     * 
     * @param hyTaskAssignmentHistory 任务分配历史
     * @return 任务分配历史
     */
    @Override
    public List<HyTaskAssignmentHistory> selectHyTaskAssignmentHistoryList(HyTaskAssignmentHistory hyTaskAssignmentHistory)
    {
        return hyTaskAssignmentHistoryMapper.selectHyTaskAssignmentHistoryList(hyTaskAssignmentHistory);
    }

    /**
     * 新增任务分配历史
     * 
     * @param hyTaskAssignmentHistory 任务分配历史
     * @return 结果
     */
    @Override
    public int insertHyTaskAssignmentHistory(HyTaskAssignmentHistory hyTaskAssignmentHistory)
    {
        return hyTaskAssignmentHistoryMapper.insertHyTaskAssignmentHistory(hyTaskAssignmentHistory);
    }

    /**
     * 修改任务分配历史
     * 
     * @param hyTaskAssignmentHistory 任务分配历史
     * @return 结果
     */
    @Override
    public int updateHyTaskAssignmentHistory(HyTaskAssignmentHistory hyTaskAssignmentHistory)
    {
        return hyTaskAssignmentHistoryMapper.updateHyTaskAssignmentHistory(hyTaskAssignmentHistory);
    }

    /**
     * 批量删除任务分配历史
     * 
     * @param ids 需要删除的任务分配历史主键
     * @return 结果
     */
    @Override
    public int deleteHyTaskAssignmentHistoryByIds(Long[] ids)
    {
        return hyTaskAssignmentHistoryMapper.deleteHyTaskAssignmentHistoryByIds(ids);
    }

    /**
     * 删除任务分配历史信息
     * 
     * @param id 任务分配历史主键
     * @return 结果
     */
    @Override
    public int deleteHyTaskAssignmentHistoryById(Long id)
    {
        return hyTaskAssignmentHistoryMapper.deleteHyTaskAssignmentHistoryById(id);
    }
}
